package com.rxyl.love.petdoctor.entity;

import java.io.Serializable;

/**
 * Created by dd on 2016/1/12 0012.
 */
public class CityEntity implements Serializable {

    private int city_id;
    private String city_name;
    private int type = 1;
    private String city_letter;

    public CityEntity() {
    }

    public CityEntity(String city_name, int type) {
        this.city_name = city_name;
        this.type = type;
    }

    public boolean eq(String label) {
        if (this.type == 0 && city_name.equals(label)) {
            return true;
        }
        return false;
    }

    public int getCity_id() {
        return city_id;
    }

    public void setCity_id(int city_id) {
        this.city_id = city_id;
    }

    public String getCity_name() {
        return city_name;
    }

    public void setCity_name(String city_name) {
        this.city_name = city_name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getCity_letter() {
        return city_letter;
    }

    public void setCity_letter(String city_letter) {
        this.city_letter = city_letter;
    }
}
